// 商家数据
export const merchants = [
  {
    id: 1,
    name: '商户标题1',
    image: 'https://xrmini.dwtcy.com.cn/images/Merchant/标签图片.png',
    hotGame: '经典观光路线，适合初次体验',
    businessHours: '08:00-23:00',
    address: '北京市朝阳区三里屯街道123号',
    phone: '010-12345678',
    scripts: [
      {
        id: 1,
        name: '剧本1',
        image: 'https://xrmini.dwtcy.com.cn/images/Merchant/MerchantIM/剧本1.png',
        time: '今日09:00开场',
        price: '78',
        coverImage: 'https://xrmini.dwtcy.com.cn/images/Merchant/MerchantIM/剧本1.png',
        fullName: '剧本杀1',
        rating: 9.8,
        players: '8人',
        gender: '四女四男',
        duration: '4h',
        type: '微恐',
        tags: ['现代', '架空', '情感', '现代'],
        plot: '1937年，沪上望族钟家迎来老爷钟孟之的六十寿宴，却在寿宴前夜传出噩耗——钟老爷于书房离奇身亡，房门从内反锁，案发现场只留下半枚带墨渍的指纹与一封未写完的书信。'
      },
      {
        id: 2,
        name: '剧本2',
        image: 'https://xrmini.dwtcy.com.cn/images/Merchant/MerchantIM/剧本2.png',
        time: '今日14:00开场',
        price: '88',
        coverImage: 'https://xrmini.dwtcy.com.cn/images/Merchant/MerchantIM/剧本2.png',
        fullName: '剧本杀2',
        rating: 9.5,
        players: '6人',
        gender: '三女三男',
        duration: '3h',
        type: '推理',
        tags: ['古代', '武侠', '情感'],
        plot: '这是一部精彩的推理剧本...'
      }
    ]
  },
  {
    id: 2,
    name: '商户标题2',
    image: 'https://xrmini.dwtcy.com.cn/images/Merchant/标签图片.png',
    hotGame: '深度体验路线，感受当地文化',
    businessHours: '09:00-22:00',
    address: '上海市浦东新区陆家嘴金融中心456号',
    phone: '021-23456789',
    scripts: [
      {
        id: 3,
        name: '剧本3',
        image: 'https://xrmini.dwtcy.com.cn/images/Merchant/MerchantIM/剧本3.png',
        time: '今日19:00开场',
        price: '98',
        coverImage: 'https://xrmini.dwtcy.com.cn/images/Merchant/MerchantIM/剧本3.png',
        fullName: '剧本杀3',
        rating: 9.3,
        players: '7人',
        gender: '四女三男',
        duration: '5h',
        type: '恐怖',
        tags: ['现代', '悬疑', '恐怖'],
        plot: '一部恐怖悬疑剧本...'
      },
      {
        id: 4,
        name: '剧本4',
        image: 'https://xrmini.dwtcy.com.cn/images/Merchant/MerchantIM/剧本4.png',
        time: '明日10:00开场',
        price: '108',
        coverImage: 'https://xrmini.dwtcy.com.cn/images/Merchant/MerchantIM/剧本4.png',
        fullName: '剧本杀4',
        rating: 9.6,
        players: '9人',
        gender: '五女四男',
        duration: '4h',
        type: '欢乐',
        tags: ['现代', '都市', '欢乐'],
        plot: '一部欢乐都市剧本...'
      }
    ]
  },
  {
    id: 3,
    name: '商户标题3',
    image: 'https://xrmini.dwtcy.com.cn/images/Merchant/标签图片.png',
    hotGame: '自然风光路线，亲近大自然',
    businessHours: '10:00-21:00',
    address: '广州市天河区珠江新城789号',
    phone: '020-34567890',
    scripts: []
  }
];

// 根据id获取商家
export const getMerchantById = (id: number) => {
  return merchants.find(m => m.id === id);
};

// 根据id获取剧本
export const getScriptById = (scriptId: number) => {
  for (const merchant of merchants) {
    const script = merchant.scripts.find(s => s.id === scriptId);
    if (script) return script;
  }
  return null;
};

